<h1>Rental List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Prefix</th>
      <th>Suffix</th>
      <th>Title</th>
      <th>Description</th>
      <th>Rating</th>
      <th>Broken</th>
      <th>Deleted</th>
      <th>Turnover</th>
      <th>Rents</th>
      <th>Note</th>
      <th>Place</th>
      <th>Price</th>
      <th>Carrier</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($rental_list as $rental): ?>
    <tr>
      <td><a href="<?php echo url_for('rental/show?id='.$rental->getId()) ?>"><?php echo $rental->getId() ?></a></td>
      <td><?php echo $rental->getPrefix() ?></td>
      <td><?php echo $rental->getSuffix() ?></td>
      <td><?php echo $rental->getTitle() ?></td>
      <td><?php echo $rental->getDescription() ?></td>
      <td><?php echo $rental->getRating() ?></td>
      <td><?php echo $rental->getBroken() ?></td>
      <td><?php echo $rental->getDeleted() ?></td>
      <td><?php echo $rental->getTurnover() ?></td>
      <td><?php echo $rental->getRents() ?></td>
      <td><?php echo $rental->getNote() ?></td>
      <td><?php echo $rental->getPlace() ?></td>
      <td><?php echo $rental->getPriceId() ?></td>
      <td><?php echo $rental->getCarrierId() ?></td>
      <td><?php echo $rental->getCreatedAt() ?></td>
      <td><?php echo $rental->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('rental/new') ?>">New</a>
